package spindles.gwt.shared;

import java.util.ArrayList;
import java.util.List;

public class EpochDTO extends DTO {
	
	private String startTime;
	
	private String endTime;
	
	private int softSpindlesCount;
	
	private int hardSpindlesCount;
	
	private String sessionPartID;
	
	/**	 
	 * @gwt.typeArgs <spindles.gwt.shared.SpindleDTO>
	 */
	private List softSpindles = new ArrayList();
	
	/**	 
	 * @gwt.typeArgs <spindles.gwt.shared.SpindleDTO>
	 */
	private List hardSpindles = new ArrayList();
	
	
	public EpochDTO(){}
	

	public String[] toRecord() {		
		return new String[]{getId(), startTime, endTime, 
				String.valueOf(softSpindlesCount),
				String.valueOf(hardSpindlesCount)};
	}


	public String getEndTime() {
		return endTime;
	}


	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}


	public String getSessionPartID() {
		return sessionPartID;
	}


	public void setSessionPartID(String sessionPartID) {
		this.sessionPartID = sessionPartID;
	}


	public String getStartTime() {
		return startTime;
	}


	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}


	public int getSoftSpindlesCount() {
		return softSpindlesCount;
	}


	public List getSoftSpindles() {
		return softSpindles;
	}
	
	public List getHardSpindles(){
		return hardSpindles;
	}
	
	public void setHardSpindles(List spindles){
		this.hardSpindles = spindles;
	}

	public void setSoftSpindles(List spindles) {
		this.softSpindles = spindles;
	}


	public void setSoftSpindlesCount(int spindlesCount) {
		this.softSpindlesCount = spindlesCount;
	}


	public int getHardSpindlesCount() {
		return hardSpindlesCount;
	}


	public void setHardSpindlesCount(int hardSpindlesCount) {
		this.hardSpindlesCount = hardSpindlesCount;
	}

}
